package com.gx.mvp.net;

/**
 * Created by Guoxin on 2019-12-07.
 */
public class ApiException extends Exception {

    private Object data;

    private String errorMessage;

    public ApiException(Object data, String errorMessage) {
        super("ApiException: errorMessage=" + errorMessage + ", data='" + data);
        this.data = data;
        this.errorMessage = errorMessage;
    }

    public Object getData() {
        return data;
    }

    public String getErrorMessage() {
        return errorMessage;
    }
}
